<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { bulletList } from "@/module/logboard"
import { ElMessage } from 'element-plus';

const scrollbar = ref(null)


</script>

<template>
  <el-card class="logBoard" body-style="{padding: 0px}">
    <el-row class="log">
      <el-col >
        <el-scrollbar height="600px" ref="scrollbar">
          <p  v-for="(bullet, i) in bulletList" 
              :key ="i" 
              class="logItem">
            {{ bullet.toString() }}
          </p>
        </el-scrollbar>
      </el-col>
    </el-row>
  </el-card>
</template>

<style scoped>
  .logBoard{
      background-color: white;
      border-radius: 10px;
  }
  .logItem {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 10px 0 10px 0;
    text-align: center;
    border-radius: 4px;
    background: var(--el-color-primary-light-9);
    color: var(--el-color-primary);
    padding-left: 5px;
    padding-right: 5px;
    word-break: break-all;
    font-size: small;
  }
</style>
